public class Ifone {public static void main(String[] args) {
    //(1)
    //  int x = 4;  int y = 1;  if (x > 2) {
    //     if (y > 2)
    //     System.out.println(x + y);  System.out.println("海经贸");
    //     } else
    //    System.out.println("x is " + x);
        
        //(2)
        boolean b = true;
//如果写成if(b=false)能编译通过吗？如果能，结果是？
         if(b == false)
        System.out.println("a");
         else if(b)
       System.out.println("b");
        else if(!b)
        System.out.println("c");
       else
       System.out.println("d");
        
}
}
